package com.unchartedskies.factory
{
	import com.unchartedskies.view.Accueil;
	import com.unchartedskies.view.Login;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.utils.getDefinitionByName;
	
	
	public class StateFactory extends MovieClip
	{

		com.unchartedskies.view.Accueil; 
		com.unchartedskies.view.Login;
		
		public static function createView(viewClass:String):Sprite
		{
			var ViewClass:Class = getDefinitionByName(viewClass) as Class;
			var view:Sprite = new ViewClass();
			return view;
		}
	}
}